import request from '@/utils/request'

export function paginate(form, page, page_size) {
  return request({
    url: '/api/pajx/stu/paginate',
    method: 'post',
    data: {
      page_num: page,
      page_size: page_size,
      hxy_scl_id: form.hxy_scl_id,
      hxy_gra_id: form.hxy_gra_id,
      hxy_cls_id: form.hxy_cls_id,
      create_time_start: form.create_time_start,
      create_time_end: form.create_time_end,
      insch_year: form.insch_year,
      stay_flag: form.stay_flag,
      card_type_flag: form.card_type_flag,
      card_mark_flag: form.card_mark_flag,
      keyword: form.keyword
    }
  })
}

export function detail(hxy_stu_id) {
  return request({
    url: '/api/pajx/stu/detail',
    method: 'post',
    data: {
      hxy_stu_id: hxy_stu_id
    }
  })
}
